package com.ms.common.config;

import com.jfinal.config.Interceptors;
import com.jfinal.plugin.activerecord.tx.TxByMethodRegex;
import com.jfinal.plugin.activerecord.tx.TxByMethods;

public class _BaseInterceptor {
	/**
	 * 配置事物管理
	 * @param me
	 */
	public static void interceptor(Interceptors me){
		//me.addGlobalActionInterceptor(globalActionInterceptor)
		me.add(new TxByMethodRegex("(.*save.*|.*update.*)"));
		me.add(new TxByMethods("save","update"));
	}
}
